package com.hui.dbmigrator.dto.request;

import com.hui.dbmigrator.config.DatabaseConfig;
import com.hui.dbmigrator.entity.TableDefinition;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CreateTableRequest {
    @NotNull
    @Valid
    private DatabaseConfig database;

    @NotNull
    @Valid
    private TableDefinition tableDefinition;
}
